package com.ftd.model;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

/**
 * Created by apple on 16/7/29.
 */
public class Ebook {
    private String eBookName;
    private String eBookReading;
    private String eBookReview;
    private String eImageUrl;
    private String tag;
    private String author;
    private String bookUrl;

    public String getBookUrl() {
        return bookUrl;
    }

    public void setBookUrl(String bookUrl) {
        this.bookUrl = bookUrl;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Ebook(JSONObject jsonObject) {
        this.eBookName = jsonObject.get("title").toString();
        this.eBookReading = jsonObject.get("reading").toString();
        this.eImageUrl = jsonObject.get("img").toString();
        this.eBookReview = jsonObject.get("sub2").toString();
    }

    public Ebook() {

    }

    public String geteBookName(){
        return eBookName;
    }

    public void seteBookName(String eBookName) {
        this.eBookName = eBookName;
    }

    public String geteBookReading() {
        return eBookReading;
    }

    public void seteBookReading(String eBookReading) {
        this.eBookReading = eBookReading;
    }

    public String geteImageUrl() {
        return eImageUrl;
    }

    public void seteImageUrl(String eImageUrl) {
        this.eImageUrl = eImageUrl;
    }

    public String geteBookReview() {
        return eBookReview;
    }

    public void seteBookReview(String eBookReview) {
        this.eBookReview = eBookReview;
    }
}
